function to(url) {
  wx.navigateTo({
    url,
  });
}
function toast(title) {
  wx.showToast({
    title,
    icon: "none",
    duration: 1500,
    mask: true,
  });
}
const logger = wx.getRealtimeLogManager();

function err(err) {
  console.error(err);
  logger.error(err);
}
function log(res) {
  console.log(res);
  logger.info(res);
}
function get(key) {
  return wx.getStorageSync(key);
}
module.exports = {
  to,
  get,
  toast,
  err,
  log,
};
